package com.camemax.pojo;

import org.springframework.stereotype.Repository;

/*
* Pojo类 ItemViewCount ，封装商品的销售量、时间戳、商品编号
* */
@Repository
public class ItemViewCount {
    private Long itemId;
    private Long timstamp;
    private Long itemCount;

    public ItemViewCount(){}

    public Long getItemId() {
        return itemId;
    }

    public void setItemId(Long itemId) {
        this.itemId = itemId;
    }

    public Long getTimstamp() {
        return timstamp;
    }

    public void setTimstamp(Long timstamp) {
        this.timstamp = timstamp;
    }

    public Long getItemCount() {
        return itemCount;
    }

    public void setItemCount(Long itemCount) {
        this.itemCount = itemCount;
    }

    public ItemViewCount(Long itemId, Long timstamp, Long itemCount) {
        this.itemId = itemId;
        this.timstamp = timstamp;
        this.itemCount = itemCount;
    }

    @Override
    public String toString() {
        return "ItemViewCount{" +
                "itemId=" + itemId +
                ", timstamp=" + timstamp +
                ", itemCount=" + itemCount +
                '}';
    }
}
